package com.linkage.usercenter.service;

import com.github.pagehelper.PageInfo;
import com.linkage.usercenter.pojo.entity.CoreNotice;

import java.util.List;

public interface INoticeService {
    /**
     * 创建通知公告
     * @param coreNotice
     * @throws Exception
     */
    void createNotice(CoreNotice coreNotice) throws Exception;

    /**
     * 通知公告详情查询
     * @param id
     * @return
     * @throws Exception
     */
    CoreNotice singleNoticeShow(String id) throws Exception;

    /**
     * 通知公告列表查询，按标题模糊查询
     * @param pageNo
     * @param pageSize
     * @param title
     * @param type
     * @return
     * @throws Exception
     */
    PageInfo<CoreNotice> listNoticeShow(Integer pageNo, Integer pageSize, String title, Integer type) throws Exception;

    List<CoreNotice> queryList(CoreNotice notice);

    Integer deleteNotice(String id) throws Exception;

    Integer updateNotice(CoreNotice notice) throws Exception;
}
